package com.ruoyi.mongodb.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author 韩国伟
 * @version 1.0
 * @description: Hero实体类
 * @date 2023/2/28 20:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("hero")
public class Hero {

    @Id
    private String id;

    private String name;

    private Integer age;

    private String work;
}
